home *** CD-ROM | disk | FTP | other *** search
- global gFieldTop, gchaptertextheight, glessonnumber, theSparkle, gplaystatus, gAfterClick, gQuick
-
- on mouseDown
- set mouseloc to (getAt(clickLoc(), 2) - gFieldTop) / gchaptertextheight
- if (mouseloc >= 1) and (mouseloc <= glessonnumber) then
- pausethemoov()
- sparkle(theSparkle, clickLoc())
- if gQuick then
- set gplaystatus to #play
- donewchapter(mouseloc, 1, #play)
- else
- set gplaystatus to #pause
- donewchapter(mouseloc, 1, #pause)
- end if
- set gAfterClick to 1
- end if
- end
-